﻿using OPCAutomation;
using System.Collections.Generic;

namespace TYPLC
{
    public class TYOpcGroup
    {
        public OPCGroup OpcGroup { get; set; }
        public string Name { get; set; }

        public List<TYOpcItem> ListItem { get; set; } = new List<TYOpcItem>();
    }

    public class TYOpcItem
    {
        internal int Index;

        internal OPCItem OpcItem;
        public string Address { get; set; }
        public int ClientHand { get; set; }
    }

    public enum EnumDataType
    {
        Bool,
        Char,
        Byte,
        Short,
        Word,
        DWord,
        Int,
        DInt,
        Real,
        String,
        DateTime
    }
}